package inventoryServe.service.impl;


import inventoryServe.mapper.TypeMapper;
import inventoryServe.po.Type;
import inventoryServe.service.TypeService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class TypeServiceImpl implements TypeService {
    // 注解注入 TypeDao
    @Autowired
    private TypeMapper typeMapper;
    @Override
    public List<Type> allType() {
        return this.typeMapper.allType();
    }
}
